get $_SERVER['HTTP_X_REQUESTED_WITH'] with iframe

Posted by keith on Stack Overflow See other posts from Stack Overflow or by keith
Published on 2010-06-15T18:00:51Z Indexed on 2010/06/15 18:02 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

I'm working with Colorbox and if I specify to use an iframe with it then the $_SERVER['HTTP_X_REQUESTED_WITH'] variable is no longer available to me. I need that in order to detect if ajax has loaded so then I can include a header/footer or not.

Anyway to get this variable or is there another variable that I can get when I use iframe?

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript